package cn.yougou.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class YgCommentVo implements Serializable {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 商品Id
     */
    private Integer commodityid;

    /**
     * 用户头像
     */
    private String userAvatar;

    /**
     * 用户昵称 默认值 新用户
     */
    private String userid;

    /**
     * 用户唯一id
     */
    private Integer userStaid;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 是否含有图片
     */
    private Integer haspicture;

    /**
     * 如果type=0，则是商品评论；如果是type=1，则是专题评论。
     */
    private Integer type;

    /**
     * 图片地址列表，采用JSON数组格式
     */
    private String picurls;

    /**
     * 评分， 1-5
     */
    private Integer star;

    /**
     * 评论创建时间
     */
    private String addtime;

    /**
     * 购买规格
     */
    private String specifications;

    /**
     * 总条数
     */
    private Integer count;

    /**
     * 好评率
     */
    private String goodsString;

    /**
     * 订单id
     */
    private Integer orderId;


    /**
     * 订单编号
     */
    private String orderSn;


    /**
     * 前端传过来的图片List集合
     */
    private List<String> urlAft;


    public YgCommentVo() {
    }

    public YgCommentVo(Integer id, Integer commodityid, String userAvatar, String userid, String content, Integer haspicture, String picurls, Integer star, String addtime, String specifications) {
        this.id = id;
        this.commodityid = commodityid;
        this.userAvatar = userAvatar;
        this.userid = userid;
        this.content = content;
        this.haspicture = haspicture;
        this.picurls = picurls;
        this.star = star;
        this.addtime = addtime;
        this.specifications = specifications;
    }

    public YgCommentVo(Integer id, Integer commodityid, String userAvatar, String userid, String content, Integer haspicture, String picurls, Integer star, String addtime, String specifications, Integer count, String goodsString) {
        this.id = id;
        this.commodityid = commodityid;
        this.userAvatar = userAvatar;
        this.userid = userid;
        this.content = content;
        this.haspicture = haspicture;
        this.picurls = picurls;
        this.star = star;
        this.addtime = addtime;
        this.specifications = specifications;
        this.count = count;
        this.goodsString = goodsString;
    }


    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getUserStaid() {
        return userStaid;
    }

    public void setUserStaid(Integer userStaid) {
        this.userStaid = userStaid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getHaspicture() {
        return haspicture;
    }

    public void setHaspicture(Integer haspicture) {
        this.haspicture = haspicture;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPicurls() {
        return picurls;
    }

    public void setPicurls(String picurls) {
        this.picurls = picurls;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getGoodsString() {
        return goodsString;
    }

    public void setGoodsString(String goodsString) {
        this.goodsString = goodsString;
    }

    public List<String> getUrlAft() {
        return urlAft;
    }

    public void setUrlAft(List<String> urlAft) {
        this.urlAft = urlAft;
    }


    @Override
    public String toString() {
        return "YgCommentVo{" +
                "id=" + id +
                ", commodityid=" + commodityid +
                ", userAvatar='" + userAvatar + '\'' +
                ", userid='" + userid + '\'' +
                ", userStaid=" + userStaid +
                ", content='" + content + '\'' +
                ", haspicture=" + haspicture +
                ", type=" + type +
                ", picurls='" + picurls + '\'' +
                ", star=" + star +
                ", addtime='" + addtime + '\'' +
                ", specifications='" + specifications + '\'' +
                ", count=" + count +
                ", goodsString='" + goodsString + '\'' +
                ", urlAft=" + urlAft +
                '}';
    }
}


